package com.ipc.core.dao.zzcool;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ipc.common.pojo.zzcool.dto.CouponDto;
import com.ipc.core.entity.zzcool.CouponDetails;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * (CouponDetails)表数据库访问层
 *
 * @author makejava
 * @since 2023-04-30 18:41:03
 */
@Component
@Mapper
public interface CouponDetailsDao extends BaseMapper<CouponDetails> {


    @Delete("delete from iparkcloud.t_coupon_details where cId = #{cId}")
    int deleteBycid(int cId);


    List<CouponDto> selectAllCoupons(@Param("isget") String isget, @Param("staleDated") String staleDated, @Param("cId") Integer cId);

}

